package com.ccom.starter.file.config;

import com.ccom.starter.file.properties.OssProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
@EnableConfigurationProperties(value = OssProperty.class)
public class OssConfig {

    @Autowired
    private OssProperty ossProperty;

    @Bean
    public void initOssBootConfiguration() {
//        OssBootUtil.setEndPoint(ossProperty.getEndpoint());
//        OssBootUtil.setAccessKeyId(ossProperty.getAccessKeyId());
//        OssBootUtil.setAccessKeySecret(ossProperty.getAccessKeySecret());
//        OssBootUtil.setBucketName(ossProperty.getBucketName());
//        OssBootUtil.setStaticDomain(ossProperty.getStaticDomain());
    }
}
